package com.yb.shiro.server.common;

import lombok.Getter;

/**
 * @author biaoyang
 */
@Getter
public enum ResultStatusEnum {

    /**
     * 返回状态
     */
    OK(200, "OK"),
    AUTHENTICATE_FAILED(401, "未授权"),
    INVALID_PASSWORD(401, "用户名或密码不正确"),
    INVALID_TOKEN(401, "token 无效"),
    EXPIRED_TOKEN(401, "token 已过期"),
    INTER_ERROR(500, "服务器内部错误"),
    LOCKED_USER(401, "账户已被冻结");

    private int code;
    private String message;

    ResultStatusEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
